package com.demo.elasticsearch.simple.entity;

import io.github.classgraph.json.Id;
import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;

import java.math.BigDecimal;

@Data
@Document(indexName = "bank")
public class BankEntity {
    @Id
    private Integer id;
    @Field(name = "account_number")
    private Integer accountNumber;
    @Field(name = "balance")
    private BigDecimal balance;
    @Field(name = "firstname")
    private String firstName;
    @Field(name = "lastname")
    private String lastName;
    @Field(name = "age")
    private Integer age;
    @Field(name = "gender")
    private String gender;
    @Field(name = "address")
    private String address;
    @Field(name = "employer")
    private String employer;
    @Field(name = "email")
    private String email;
    @Field(name = "city")
    private String city;
    @Field(name = "state")
    private String state;

}
